package object3;
/**
 *@Author:Cjj
 *@Date: 2025/4/28
 *Cat 类
 */
public class Cat extends Animal{
    public static void main(String[] args) {
        Cat ani = new Cat();

        if(ani instanceof Cat){
            System.out.println("是一只猫");
        }else{
            System.out.println("不是一只猫");
        }
    }
}
